package cn.itsource.org.domain;

import cn.itsource.basic.domain.BaseDomain;
import cn.itsource.basic.util.PetHomeConstant;
import io.swagger.annotations.ApiModel;
import lombok.*;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Getter
@Setter
@Table(name = "t_shop")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "店铺对象", description = "就是个对象，别问了")
public class Shop extends BaseDomain {
    //店铺名称
    private String name;
    //店铺电话
    private String tel;
    //注册时间
    private Date registerTime = new Date();
    //状态 0:待审核 1：已审核待激活 2.正常使用 3.驳回
    private Integer state = PetHomeConstant.Shop.DAI_SHENHE;
    //地址
    private String address;
    //招牌图片
    private String logo;
    //店长id ，对应t_employee的主键id
    private Long adminId;

    /**
     * 店长信息
     */
    @Transient
    private Employee admin;

}
